package cn.iocoder.yudao.module.course.controller.admin.courses.vo;

import cn.iocoder.yudao.module.course.controller.admin.coursematerials.vo.CourseMaterialsSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 课程新增/修改 Request VO")
@Data
public class CoursesSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3422")
    private Long id;

    @Schema(description = "课程标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "课程标题不能为空")
    private String title;

    @Schema(description = "课程描述", example = "随便")
    private String description;

    @Schema(description = "课程类别", example = "27902")
    private Long categoryId;

    @Schema(description = "封面图片路径")
    private String coverImage;

    @Schema(description = "行锁版本号")
    private Integer version;

    @Schema(description = "组归属部门（当前新增用户所在的部门）", example = "9238")
    private Long deptId;

    private List<CourseMaterialsSaveReqVO> materialList;

}